
#include <Arduino.h>
#include <SPI.h>

// select one display class
////#include <GxTFT_GFX.h> // deprecated, uses Adafruit_GFX; you would need to copy it from extras/src for use
#include <GxTFT.h>              // Hardware-specific library

// select one display class
//#define TFT_Class GxTFT_GFX     // deprecated, uses Adafruit_GFX; you would need to copy it from extras/src for use
#define TFT_Class GxTFT

// select one GxIO class, 
// note: "error: 'GxIO_Class' does not name a type": indicates target board selection mismatch
#include <GxIO/STM32GENERIC/GxIO_STM32F4_FSMC/GxIO_STM32F4_FSMC.h>

// select one GxCTRL class
#include <GxCTRL/GxCTRL_SSD1963/GxCTRL_SSD1963.h>

// create instance for the selected GxIO class
GxIO_Class io; // #define GxIO_Class is in the selected header file
// note: "error: 'GxIO_Class' does not name a type": indicates target board selection mismatch

// create instance for the selected GxCTRL class
GxCTRL_Class controller(io);                                    // #define GxCTRL_Class is in the selected header file

// select one or adapt
//TFT_Class tft(io, controller, 480, 800);
TFT_Class tft(io, controller, 800, 480);

#include "GxReadRegisters.h"

#if !defined(ESP8266)
  #define yield()
#endif


void setup() {

  tft.init();

}

void loop() {

// add code here

}
